/**********************************************************************************************************************
* COPYRIGHT 
* ------------------------------------------------------------------------------------------------------------------- 
* Copyright (c) iSOFT INFRASTRUCTURE SOFTWARE CO., LTD. This software is proprietary to 
* iSOFT INFRASTRUCTURE SOFTWARE CO., LTD., and all rights are reserved by iSOFT INFRASTRUCTURE SOFTWARE CO., LTD. 
* Without the express written permission of the company, no organization or individual may copy, install, trial, 
* distribute, or reverse engineer this software. For terms of use and further details, please refer to the End User 
* License Agreement (EULA) or contact us business@i-soft.com.cn for more assistance. 
* 
* This file contains code from EasyXMen, which is licensed under the LGPL-2.1. However, due to a special exception, 
* you are not required to comply with the provisions of section 6a of LGPL-2.1. Specifically, you may distribute 
* your software, including this file, under terms of your choice, including proprietary licenses, without needing to 
* provide the source code or object code as specified in section 6a. For more details, please refer to the project's 
* LICENSE and EXCEPTION files and the specific exception statement.  
* ------------------------------------------------------------------------------------------------------------------- 
* FILE DESCRIPTION 
* ------------------------------------------------------------------------------------------------------------------- 
*  @MCU                : TC397 
*  @file               : Crypto_Cfg.c 
*  @license            : Evaliation 
*  @licenseExpiryDate  :  
*  @date               : 2024-11-27 16:16:17 
*  @customer           : EasyXMen User 
*  @toolVersion        : 2.0.18 
*********************************************************************************************************************/ 
/*******************************************************************************
**                      Includes                                              **
*******************************************************************************/
#include "Crypto_Cfg.h"
#include "Crypto_Types.h"

#define CRYPTO_START_SEC_VAR_CLEARED_8
#include "Crypto_MemMap.h"

static uint8 CryptoKeyElementValue_0_0[32U] = {0x59, 0xA4, 0x08, 0xB5, 0xED, 0x69, 0xE2, 0xEB, 0xE8, 0xDC, 0x3D, 0xD4, 0x62, 0x14, 0x53, 0xDA, 0x8B, 0x0D, 0xEB, 0xF2, 0x94, 0x19, 0x0A, 0xCD, 0x9C, 0xDB, 0x45, 0x2E, 0x90, 0xB7, 0x76, 0x3D};

static uint8 CryptoKeyElementValue_0_1[16U] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

static uint8 CryptoKeyElementValue_1_0[32U] = {0x2E, 0xB5, 0x01, 0x93, 0x34, 0xA2, 0x1A, 0xE6, 0x18, 0x57, 0x00, 0x09, 0x49, 0x1C, 0x50, 0xB3, 0xC1, 0x7D, 0x6E, 0x6B, 0x6B, 0x9C, 0xDE, 0xAF, 0x7E, 0x92, 0x4B, 0x50, 0x04, 0x85, 0x22, 0x52};

static uint8 CryptoKeyElementValue_1_1[16U] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

static uint8 CryptoKeyElementValue_1_2[16U] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

static uint8 CryptoKeyElementValue_1_3[16U] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

static uint8 CryptoKeyElementValue_1_4[16U] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

static uint8 CryptoKeyElementValue_2_0[32U] = {0xCE, 0x93, 0xDF, 0x59, 0xCF, 0xB6, 0x07, 0xB4, 0xED, 0x46, 0xA6, 0x54, 0x34, 0x1F, 0x46, 0x36, 0xC1, 0x23, 0x33, 0xC3, 0xFA, 0x13, 0xE2, 0x8F, 0x5B, 0x74, 0x04, 0xA3, 0x0C, 0x0A, 0xFA, 0x84};

#define CRYPTO_STOP_SEC_VAR_CLEARED_8
#include "Crypto_MemMap.h"

#define CRYPTO_START_SEC_VAR_CLEARED_32
#include "Crypto_MemMap.h"
static uint32 CryptoKeyElementLength[CRYPTO_MAXKEYELEMENT_CONFIGURED] = {32,0,32,0,0,0,0,32};
#define CRYPTO_STOP_SEC_VAR_CLEARED_32
#include "Crypto_MemMap.h"

#define CRYPTO_START_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"
static CONST(Crypto_KeyElementCfgType,CRYPTO_APPL_CONST) CryptoKeyElement_0[2]=
{
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_OCTET,/* Key family */
        1U,/* Key element Id */
        CryptoKeyElementValue_0_0,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        32U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[0],    /*CryptoKeyElementLength*/
    },
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_OCTET,/* Key family */
        5U,/* Key element Id */
        CryptoKeyElementValue_0_1,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        16U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[1],    /*CryptoKeyElementLength*/
    },
};
static CONST(Crypto_KeyElementCfgType,CRYPTO_APPL_CONST) CryptoKeyElement_1[5]=
{
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_OCTET,/* Key family */
        1U,/* Key element Id */
        CryptoKeyElementValue_1_0,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        32U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[2],    /*CryptoKeyElementLength*/
    },
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_OCTET,/* Key family */
        5U,/* Key element Id */
        CryptoKeyElementValue_1_1,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        16U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[3],    /*CryptoKeyElementLength*/
    },
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_RSA_PRIVATEKEY,/* Key family */
        8U,/* Key element Id */
        CryptoKeyElementValue_1_2,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        16U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[4],    /*CryptoKeyElementLength*/
    },
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_RSA_PUBLICKEY,/* Key family */
        10U,/* Key element Id */
        CryptoKeyElementValue_1_3,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        16U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[5],    /*CryptoKeyElementLength*/
    },
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_RSA_PRIVATEKEY,/* Key family */
        9U,/* Key element Id */
        CryptoKeyElementValue_1_4,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        16U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[6],    /*CryptoKeyElementLength*/
    },
};
static CONST(Crypto_KeyElementCfgType,CRYPTO_APPL_CONST) CryptoKeyElement_2[1]=
{
    {
        FALSE,/*CryptoKeyElementAllowPartialAccess*/
        CRYPTO_KE_FORMAT_BIN_OCTET,/* Key family */
        3U,/* Key element Id */
        CryptoKeyElementValue_2_0,      /* Key init value Id */
        FALSE,/* Key persistence Id */
        CRYPTO_RA_ALLOWED,/* Read access */
        32U, /* Max size of key */
        CRYPTO_WA_ALLOWED,/*CryptoKeyElementWriteAccess*/
        &CryptoKeyElementLength[7],    /*CryptoKeyElementLength*/
    },
};
#define CRYPTO_STOP_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"

#define CRYPTO_START_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"
static CONST(Crypto_KeyTypeCfgType, CRY_CONST) Crypto_KeyType[CRYPTO_MAXKEY_CONFIGURED] =
{
    {
        2,
        CryptoKeyElement_0,
    },
    {
        5,
        CryptoKeyElement_1,
    },
    {
        1,
        CryptoKeyElement_2,
    },
};
#define CRYPTO_STOP_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"

#define CRYPTO_START_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"
/* Store KeyElements used by the keys configured */
CONST(Crypto_KeyCfgType, CRY_CONST) Crypto_Key[CRYPTO_MAXKEY_CONFIGURED]= /* PRQA S 3408 */ /* MISRA Rule 8.4 */
{
    {
        0,
        &Crypto_KeyType[0],
    },
    {
        1,
        &Crypto_KeyType[1],
    },
    {
        2,
        &Crypto_KeyType[2],
    },
};
#define CRYPTO_STOP_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"

#define CRYPTO_START_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"
/* List of DriverObject configured */
CONST(Crypto_DriverObjectCfgType, CRY_CONST) Crypto_DriverObjects[CRYPTO_MAX_DRIVER_OBJECT] = /* PRQA S 3408 */ /* MISRA Rule 8.4 */
{
    {
        0U, /* CryptoDriverObjectId */
        5U, /* CryptoQueueSize */
        0U, /* CryptoDefaultRandomKeyRef */
        0U, /* CryptoDefaultRandomPrimitiveRef */
        0U, /* CryptoDriverObjectEcucPartitionRef */
        0U, /* CryptoPrimitiveRef */
    },
};
#define CRYPTO_STOP_SEC_CONST_UNSPECIFIED
#include "Crypto_MemMap.h"
